#include "TypeFactory.h"

DeviceNode::DeviceNode()
   {
    DeviceID = "";
    new_fd = 0;
    SendFlag = FALSE;
    DeviceState = "";
    int i = 0;
        for(i = 0 ; i < CURTAIN_NUMBER ; i ++)
        {
         CurtainState[i] = '0';
        }
        memset(Sendbuf, 0 , MESSAGE_LENGTH);
    }

 OrderForm::OrderForm()
    {
         strOrderID   = "";
         strTime      = "";
         strNumber    = "";
         strLength    = "";
         strWidth     = "";
         strThickness = "";
         strThreshold = "";
    }
char SendOrder[20][MESSAGE_LENGTH] =
{
   {'a','s','k','\r','\n'},
   {'i','d','\r','\n'},
   {'o','f','f','\r','\n'},
   {'o','n','\r','\n'},
   {'a','c','k','\r','\n'},
   {'m','o','v','e','\r','\n'},
   {'r','e','j','e','c','t','\r','\n'},
   {'o','r','d','e','r','o','k','\r','\n'}
};
